<template>
  <!-- 消息更多 -->
  <div class="page_padding">
    <MyNavBar :gobackShow="false" @goback="goback" :title="title" />
    <div class="resultPage">
      <div class="icon">
        <van-icon name="checked" />
      </div>
      <div class="title">{{ msg }}</div>
      <div class="desc" v-if="signTme">签到时间：{{ signTme }}</div>
      <div class="desc" v-else>时间：{{ dateTime }}</div>
    </div>
  </div>
</template>

<script>
import MyNavBar from '@com/MyNavBar'
import moment from 'moment'
moment.locale('zh-cn')
export default {
  name: 'resultPage',
  components: { MyNavBar },
  props: {},
  data() {
    return {
      title: '结果页',
      dateTime: moment().format('YYYY-MM-DD HH:mm:ss'),
      signTme: this.$route.query.signTme,
      msg: this.$route.query.msg ? decodeURIComponent(this.$route.query.msg) : '成功',
    }
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    goback() {
      this.$router.go(-1)
    },
  },
}
</script>

<style lang="scss" scoped>
.resultPage {
  text-align: center;
  padding: 0 16px;
  // font-size: 14px;
  .icon {
    margin-top: 150px;
    font-size: 70px;
    color: #67c23a;
  }
  .title {
    font-size: 18px;
    color: #333333;
    margin-top: 12px;
  }
  .desc {
    margin-top: 10px;
  }
}
</style>
